<!--{template common/header}-->
<!-- header start -->

<header class="header">
{eval $nav = 'http://'.$_G['setting']['domain']['app']['mobile'];}
    
    <div class="nav">
		<div class="name">
            <!--{if $action != 'create'}-->$_G[forum][name]<!--{else}-->{lang group_create}<!--{/if}-->
			
            <a href="group.php">
            <div id="u179_nav_left">
            	{lang return}
            </div>
            </a>

            <a href="forum.php?mod=post&action=newthread&fid=$_G[fid]">
            <div id="u179_nav_right">
                {lang send_threads}
            </div>
            </a>
        </div>    
    </div>
    
</header>
<!-- header end -->

<!--group start-->
<div class="wp">

    <!--{if $action != 'create'}-->
    <div id="u179_group_index_top">

        <a href="forum.php?mod=post&action=newthread&fid=$_G[fid]#groupnav">
        <div id="u179_group_index_float">
            <div id="u179_group_index_float_<!--{if $action == 'index' && $status != 2 && $status != 3}-->1<!--{else}-->3<!--{/if}-->">
                發帖
            </div>
        </div>
        </a>
        
		<a href="forum.php?mod=forumdisplay&action=list&fid=$_G[fid]#groupnav">
        <div id="u179_group_index_float">
            <div id="u179_group_index_float_<!--{if $action == 'list'}-->1<!--{else}-->3<!--{/if}-->">
            	{lang group_discuss_area}
            </div>
        </div>
        </a>
        
		<a href="forum.php?mod=group&action=memberlist&fid=$_G[fid]#groupnav">
        <div id="u179_group_index_float">
            <div id="u179_group_index_float_<!--{if $action == 'memberlist'}-->1<!--{else}-->3<!--{/if}-->">
            	{lang group_member_list}
            </div>
        </div>
        </a>
		        
		<!--{if $_G['forum']['ismoderator']}-->
		<a href="group.php">
        <div id="u179_group_index_float">
        	<div id="u179_group_index_float_<!--{if $action == 'manage'}-->1<!--{else}-->3<!--{/if}-->">群組首頁</div>
        </div>
        </a>
		<!--{else}-->
			<!--{if helper_access::check_module('group') && $status != 'isgroupuser'}-->
                <a href="forum.php?mod=group&action=join&fid=$_G[fid]">
                <div id="u179_group_index_float">
                	<div id="u179_group_index_float_3">{lang group_join_group}</div>
                </div>
                </a>
			<!--{else}-->
                <a href="forum.php?mod=group&action=out&fid=$_G[fid]">
                <div id="u179_group_index_float">
                	<div id="u179_group_index_float_3">{lang group_exit}</div>
                </div>
                </a>
			<!--{/if}-->
		<!--{/if}-->
    </div>
    <!--{/if}-->

	<div>
	<!--{if $action != 'create'}-->
    	<!--{if $_G['forum']['banner']}-->
        <div id="u179_group_index_banner">
        	<div><img src="$_G[forum][banner]" style="width:100%;"/></div>
        <!--{if $_G['forum']['description']}-->
            <div id="u179_group_index_banner_text">$_G['forum']['description']</div>
        <!--{/if}-->
        </div>
        <!--{else}-->
    	<div id="u179_group_index_header">
        <div id="u179_group_index_name">$_G[forum][name]</div>
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td width="15%" align="center" valign="bottom">$_G[forum][membernum]<br />{lang member}</td>
				<td width="30%" align="center" valign="bottom">$_G[forum][posts]<br />{lang posts}</td>
				<td width="10%" align="center" valign="bottom">
                <div class="u179_group_img32_box" style="margin-bottom:8px;">
                <div class="u179_group_img32">
                	<img width="32" height="32" src="$_G[forum][icon]" />
                </div>
                </div>
                {lang group_moderator_title}
                </td>
				<td width="30%" align="center" valign="bottom">$_G[forum][commoncredits]<br />
			    {lang credits}</td>
				<td width="15%" align="center" valign="bottom">$groupcache[ranking][data][today]<br />
				  {lang group_member_rank}
                  </td>
			</tr>
		</table>
        <!--{loop $groupmanagers $manage}--><a href="home.php?mod=space&uid=$manage[uid]&do=profile&from=space&mobile=2" target="_blank" class="u179_wy">$manage[username]</a><!--{/loop}-->
        </div>
		<!--{/if}-->
    <!--{/if}-->
	</div>

    <div>
    	<!--{if $action == 'index' && $status != 2 && $status != 3}-->
			<!--{subtemplate group/group_index}-->
		<!--{elseif $action == 'list'}-->
			<!--{subtemplate group/group_list}-->
		<!--{elseif $action == 'memberlist'}-->
			<!--{subtemplate group/group_memberlist}-->
        <!--{elseif $action == 'create'}-->
				<!--{subtemplate group/group_create}-->
		<!--{elseif $action == 'manage'}-->
			<!--{subtemplate group/group_manage}-->
		<!--{/if}-->
	</div>

</div>

<!--{template common/footer}-->